package prometheus

Import Path
	github.com/K-Phoen/grabana/target/prometheus (on go.dev)

Dependency Relation
	imports 0 packages, and imported by 8 packages

Involved Source Files prometheus.go
Package-Level Type Names (total 3)
/* sort by: | */
FormatMode switches between Table, Time series, or Heatmap. Table will only work in the Table panel. Heatmap is suitable for displaying metrics of the Histogram type on a Heatmap panel. Under the hood, it converts cumulative histograms to regular ones and sorts series by the bucket bound. func Format(format FormatMode) Option const FormatHeatmap const FormatTable const FormatTimeSeries
Option represents an option that can be used to configure a prometheus query. func Format(format FormatMode) Option func Hide() Option func Instant() Option func IntervalFactor(factor int) Option func Legend(legend string) Option func Ref(ref string) Option func New(query string, options ...Option) *Prometheus func github.com/K-Phoen/grabana/gauge.WithPrometheusTarget(query string, options ...Option) gauge.Option func github.com/K-Phoen/grabana/graph.WithPrometheusTarget(query string, options ...Option) graph.Option func github.com/K-Phoen/grabana/heatmap.WithPrometheusTarget(query string, options ...Option) heatmap.Option func github.com/K-Phoen/grabana/singlestat.WithPrometheusTarget(query string, options ...Option) singlestat.Option func github.com/K-Phoen/grabana/stat.WithPrometheusTarget(query string, options ...Option) stat.Option func github.com/K-Phoen/grabana/table.WithPrometheusTarget(query string, options ...Option) table.Option func github.com/K-Phoen/grabana/timeseries.WithPrometheusTarget(query string, options ...Option) timeseries.Option
Prometheus represents a prometheus query. Expr string Format string Hidden bool Instant bool Interval string IntervalFactor int LegendFormat string Ref string Step int func New(query string, options ...Option) *Prometheus
Package-Level Functions (total 7)
Format indicates how the data should be returned.
Hide the query. Grafana does not send hidden queries to the data source, but they can still be referenced in alerts.
Instant marks the query as "instant, which means Prometheus will only return the latest scrapped value.
IntervalFactor sets the resolution factor.
Legend sets the legend format.
New creates a new prometheus query.
Ref sets the reference ID for this query.
Package-Level Constants (total 3)
const FormatHeatmap FormatMode = "heatmap"
const FormatTable FormatMode = "table"
const FormatTimeSeries FormatMode = "time_series"